﻿<%@ Page Language="C#" validateRequest="false" AutoEventWireup="true" CodeBehind="ColumnEdit.aspx.cs" Inherits="hcms.Admin.ColumnEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>编辑栏目</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<link href="Styles/rightframe.css" rel="stylesheet" type="text/css" />
	<script src="/Scripts/jquery.min.161.js" type="text/javascript"></script>
	<script src="/Scripts/comm.js" type="text/javascript"></script>
	<script src="js/admin.js" type="text/javascript"></script>
	<script type="text/javascript">
		var submitting = false;
		function onsave() {
			try {
				//$("#idsubmit")[0].disabled = true; //?? 防止重复提交，不能防止页面刷新
				if (submitting) //?? 防止重复提交，不能防止页面刷新
					return;

				submitting = true;
				$(".submitstate").html("......");

				$("#idname").verifyEmpty();
				$("#cmd").val("save");
				//$("#code").val($("#code").val().replace(new RegExp("<", "gm"), "&1l1t1;"));
				form1.submit();
			}
			catch (err) {
				alert(err.message);
				submitting = false;
				//$("#idsubmit")[0].disabled = false;
			}
		}

		// 初始化 ?? 
		<%--
		$(function () {
			// 初始化栏目树
			window.parent.setActive("<%=cid%>");
		}); --%>
	</script>
</head>
<body>
    <form id="form1" runat="server">
	<input type="hidden" id="cmd" runat="server" />
	<div class="topdiv">
		<a href="ColumnList.aspx">栏目管理</a>
		<% foreach (System.Data.DataRow row in posrows)
	 { %>&gt;&gt; <a href="ColumnList.aspx?cid=<%=row["colID"]%>"><%=row["colName"]%></a>
		<%
	 } %>&gt;&gt; <%=cname%>&nbsp;&nbsp;&nbsp;
		<input type="button" onclick="onsave()" value="保存" />&nbsp;<span class="submitstate"><%=submitstate %></span>
	</div>
    <div class="contentdiv">
	<span class="black">栏目名称：</span><input id="idname" class="w400" type="text" runat="server" /> ●<br /><br />
	<span class="gray">栏目模板：</span><asp:DropDownList ID="idtemplateid" 
		runat="server" Width="406px">
	</asp:DropDownList>
	<br /><br />
	<span class="gray">文档模板：</span><asp:DropDownList ID="idarttemplate" 
		runat="server" Width="406px">
	</asp:DropDownList><br /><br />
	<span class="gray">栏目级别：</span><input id="idlevel" type="text" class="w400" runat="server" /><br /><br />
	<%--<span class="gray">网页标题：</span><input id="idpagetitle" type="text" class="w400" runat="server" /><br /><br />--%>
	<span class="gray">栏目标识：</span><input id="idtag" type="text" class="w400" runat="server" /><br /><br />
	<span class="gray">栏目说明：</span><input id="iddescription" type="text" class="w400" runat="server" /><br /><br />
	<span class="gray">　　　　　</span>
	<input type="button" onclick="onsave()" value="保存" />&nbsp;<span class="submitstate"><%=submitstate %></span>
    </div>
    </form>
</body>
</html>
